widget: fix GtkLabelAccessible NULL links.
authorAlban Browaeys <prahal@yahoo.com>
Sat, 14 May 2016 21:57:28 +0000 (23:57 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 15 May 2016 14:24:34 +0000 (10:24 -0400)
commitcd305c19702cc80f900a0922bce19bf0c926167a
treec16ce307499ccc7d4c1fe2703e535c2a05be359a
parentddcf47026dbbe58dca3b34c7bb1ec63bb50a861a
widget: fix GtkLabelAccessible NULL links.

Fix testsuite/a11y/about.ui GtkAboutDialog :
"CRITICAL **: atk_hyperlink_get_start_index: assertion 'ATK_IS_HYPERLINK (link)' failed"
That is set widget->priv->accessible as soon as accessible object is generated.

When accessible object is created accessible->priv->widget is set,
if widget->priv->accessible is not , then _gtk_label_accessible_update_links
exits early, thus without creating the links on the accessible side.
(This as it checks for the widget to have the accessible set before proceeding).

https://bugzilla.gnome.org/show_bug.cgi?id=766458
gtk/gtkwidget.c